// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'

import ElementUI from 'element-ui'
import WinDesign from 'win-design'
import store from './store/index.js'
import Vuex from 'vuex'

import echarts from 'echarts'
import 'element-ui/lib/theme-chalk/index.css'
import http_conf from './axiosHttp'
import jquery from "jquery"
import router from './router'
import App from './App'
import '../static/css/index.scss' // global css
import './styles/sidebar.scss';

import Swiper from 'swiper'
import 'swiper/css/swiper.css';

import 'win-design/lib/themes/default.css' // 默认主题样式文件
import 'win-design/lib/themes/fonts/iconx.js' // 如果你需要使用行业图标
import VueClipboard from 'vue-clipboard2'
VueClipboard.config.autoSetContainer = true



Vue.use(ElementUI)
Vue.use(WinDesign)
Vue.use(Vuex)

Vue.use(VueClipboard)
Vue.prototype.$echarts = echarts

Vue.prototype.$Http= http_conf.config
Vue.prototype.$axios = http_conf.axios
Vue.prototype.$Jq= jquery;


Vue.config.productionTip = false

function toEmotion(text, isNoGif){

  if (!text) {
      return text;
  }
  return text;
}


Vue.directive('emotion', {
  bind: function (el, binding) {
      el.innerHTML = toEmotion(binding.value)
  }
});

/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  store,
  components: { App },
  template: '<App/>'
})
